package com.ruoyi.pingan.fymodule.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 平平安分账订单冻结充值撤销明细
 * </p>
 *
 * @author wangy
 * @since 2025-06-19
 */
@Data
@TableName("sxo_safety_order_revoke_detail")
@Schema(name = "SxoSafetyOrderRevokeDetail对象", description = "平平安分账订单冻结充值撤销明细")
public class SxoSafetyOrderRevokeDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @Schema(description = "充值撤销id")
    @TableField("revoke_id")
    private String revokeId;

    @Schema(description = "冻结充值订单ID")
    @TableField("safety_order_id")
    private String safetyOrderId;


    @Schema(description = "用户ID")
    @TableField("user_id")
    private String userId;

    @Schema(description = "订单id")
    @TableField("order_id")
    private String orderId;

    @Schema(description = "订单号")
    @TableField("order_no")
    private String orderNo;

    @Schema(description = "店铺id")
    @TableField("shop_id")
    private String shopId;

    @Schema(description = "商品id")
    @TableField("goods_id")
    private String goodsId;

    @Schema(description = "子订单退款子账户(充值入账的见证子账户)")
    @TableField("sub_order_refund_sub_acct_no")
    private String subOrderRefundSubAcctNo;

    @Schema(description = "子订单退款金额")
    @TableField("sub_order_refund_amt")
    private String subOrderRefundAmt;

    @Schema(description = "子订单退款手续费")
    @TableField("sub_order_refund_commission")
    private String subOrderRefundCommission;

    @Schema(description = "原支付子订单号")
    @TableField("old_pay_sub_order_no")
    private String oldPaySubOrderNo;

    @Schema(description = "子订单退款备注")
    @TableField("sub_order_refund_remark")
    private String subOrderRefundRemark;

    @Schema(description = "子订单退款保留域")
    @TableField("sub_order_refund_reserved_msg")
    private String subOrderRefundReservedMsg;



    @Schema(description = "错误信息")
    @TableField("error_msg")
    private String errorMsg;

    @Schema(description = "状态（0正常, 1删除）")
    @TableField("status")
    private Integer status;

    @Schema(description = "添加时间")
    @TableField("add_time")
    private String addTime;

    @Schema(description = "更新时间")
    @TableField("upd_time")
    private String updTime;
}
